#ifndef __THREAD_H_
#define __THREAD_H_

#include <pthread.h>
#include <unistd.h>

namespace BASE{
class Thread{
public:
	Thread();
	virtual ~Thread();
public:
	virtual bool isRunning();
	virtual void start();
	virtual void stop();
	virtual void thread() = 0;
protected:
	int mIsRunning;
	pthread_t tid;
};

}

#endif
